﻿using Prism.Ioc;
using Prism.Modularity;
using Prism.Unity;
using System.Windows;

namespace Lapis.Shell
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
        {
            base.ConfigureModuleCatalog(moduleCatalog);
            //
            moduleCatalog.AddModule<ShellModule>();      //添加宿主模块
            moduleCatalog.AddModule<ModuleA.ModuleA>();  //添加业务模块A
            moduleCatalog.AddModule<ModuleB.ModuleB>();  //添加业务模块B
        }

        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>(); //返回主窗体
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }
    }
}